<?php

namespace Ladenise\EveStationTradingBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * MarketStatRequest
 */
class MarketStatRequest
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var integer
     */
    private $solarsystemid;

    /**
     * @var integer
     */
    private $hours;

    /**
     * @var integer
     */
    private $minimum_quantity;

    /**
     * @var \DateTime
     */
    private $created_at;

    /**
     * @var \Doctrine\Common\Collections\Collection
     */
    private $marketstatrequestinvtypes;

    /**
     * Constructor
     */
    public function __construct()
    {
        $this->marketstatrequestinvtypes = new \Doctrine\Common\Collections\ArrayCollection();
        $this->created_at = new \DateTime();
    }
    
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set solarsystemid
     *
     * @param integer $solarsystemid
     * @return MarketStatRequest
     */
    public function setSolarsystemid($solarsystemid)
    {
        $this->solarsystemid = $solarsystemid;
    
        return $this;
    }

    /**
     * Get solarsystemid
     *
     * @return integer 
     */
    public function getSolarsystemid()
    {
        return $this->solarsystemid;
    }

    /**
     * Set hours
     *
     * @param integer $hours
     * @return MarketStatRequest
     */
    public function setHours($hours)
    {
        $this->hours = $hours;
    
        return $this;
    }

    /**
     * Get hours
     *
     * @return integer 
     */
    public function getHours()
    {
        return $this->hours;
    }

    /**
     * Set minimum_quantity
     *
     * @param integer $minimumQuantity
     * @return MarketStatRequest
     */
    public function setMinimumQuantity($minimumQuantity)
    {
        $this->minimum_quantity = $minimumQuantity;
    
        return $this;
    }

    /**
     * Get minimum_quantity
     *
     * @return integer 
     */
    public function getMinimumQuantity()
    {
        return $this->minimum_quantity;
    }

    /**
     * Set created_at
     *
     * @param \DateTime $createdAt
     * @return MarketStatRequest
     */
    public function setCreatedAt($createdAt)
    {
        $this->created_at = $createdAt;
    
        return $this;
    }

    /**
     * Get created_at
     *
     * @return \DateTime 
     */
    public function getCreatedAt()
    {
        return $this->created_at;
    }

    /**
     * Add marketstatrequestinvtypes
     *
     * @param \Ladenise\EveStationTradingBundle\Entity\MarketStatRequestInvtype $marketstatrequestinvtypes
     * @return MarketStatRequest
     */
    public function addMarketstatrequestinvtype(\Ladenise\EveStationTradingBundle\Entity\MarketStatRequestInvtype $marketstatrequestinvtypes)
    {
        $this->marketstatrequestinvtypes[] = $marketstatrequestinvtypes;
    
        return $this;
    }

    /**
     * Remove marketstatrequestinvtypes
     *
     * @param \Ladenise\EveStationTradingBundle\Entity\MarketStatRequestInvtype $marketstatrequestinvtypes
     */
    public function removeMarketstatrequestinvtype(\Ladenise\EveStationTradingBundle\Entity\MarketStatRequestInvtype $marketstatrequestinvtypes)
    {
        $this->marketstatrequestinvtypes->removeElement($marketstatrequestinvtypes);
    }

    /**
     * Get marketstatrequestinvtypes
     *
     * @return \Doctrine\Common\Collections\Collection 
     */
    public function getMarketstatrequestinvtypes()
    {
        return $this->marketstatrequestinvtypes;
    }
}